<template>
	<view class="main">
		<view class="active_tit">
			<view class="tit">
				<text style="color: red;">*</text> 经营历史：
			</view> 
		</view>
		<!-- input -->
		<ActiveForm required  ref='busiHistory' style="width: 100% !important;">
			
			<view class="active_input">
				<textarea maxlength="1000" placeholder='最多输入1000字' v-model="form.busiHistory" auto-height style="min-height: 20rem;width: 100%;font-size: 2.6rem;" />
			</view>
		</ActiveForm>
		
		<view class="active_tit">
			<view class="tit">
				<text style="color: red;">*</text> 经营模式及经营现状：
			</view> 
		</view>
		<!-- input -->
		<ActiveForm required  ref='busiModelAndActuality' style="width: 100% !important;">
			
			<view class="active_input">
				<textarea maxlength="1000" placeholder='最多输入1000字' v-model="form.busiModelAndActuality" auto-height style="min-height: 20rem;width: 100%;font-size: 2.6rem;" />
			</view>
		</ActiveForm>
		
		<view class="active_tit">
			<view class="tit">
				<text style="color: red;">*</text> 调查说明：
			</view> 
		</view>
		<!-- input -->
		<ActiveForm required  ref='surveyNotes' style="width: 100% !important;">
			
			<view class="active_input">
				<textarea maxlength="1000" placeholder='最多输入1000字' v-model="surveyNotes" auto-height style="min-height: 20rem;width: 100%;font-size: 2.6rem;" />
			</view>
		</ActiveForm>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				surveyNotes:'',
				form:{}
			}
		},
		watch:{
			surveyNotes:{
				handler:function(res){
					//console.log(res)
					getApp().globalData.stdOffsurBaiscInfo.surveyNotes = res
				},
				deep:true
			},
			form:{
				handler:function(res){
					console.warn('manageHistory组件数据变化',res)
					getApp().globalData.stdOffsurLoanBasic = Object.assign(getApp().globalData.stdOffsurLoanBasic, res)
					
				},
				deep:true
			}
		},
		mounted() {
			setTimeout(()=>{
				this.surveyNotes = getApp().globalData.stdOffsurBaiscInfo.surveyNotes 
				this.form = getApp().globalData.stdOffsurLoanBasic
			},getApp().globalData.timeout)
		}
	}
</script>

<style>
</style>
